

import Role from "./Role"
import { PaginationTable } from "@xuekl/cli-core/builder"
import { Selection, Index, Operation } from "@xuekl/cli-core/helper"
import { TableSelection, TableIndex, TableColumn, TableOperation } from "@xuekl/cli-core/types"

export default class RoleTable extends PaginationTable<Role> implements Selection<Role>, Index, Operation {
    operation: TableOperation = {
        label: '操作',
        width: 100
    }
    index: TableIndex = {
        width: 60,
        label: '序号'
    }
    selection: TableSelection = {}
    selectedData: Role[] = []
    columns: TableColumn<Role>[] = [
        {
            prop: 'roleName',
            label: '角色名称'
        },
        {
            prop: 'roleKey',
            label: '权限字符'
        },
        {
            prop: 'roleSort',
            label: '角色顺序'
        },
        {
            prop: 'remark',
            label: '备注'
        },
    ]
}